package com.share.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author sunxuejian
 * @date 2020/3/19
 */
@Data
@Accessors(chain = true)
public class User {

//    @JSONField(serialzeFeatures= {SerializerFeature.WriteMapNullValue})
//    @JSONField(serialzeFeatures= {SerializerFeature.WriteNullStringAsEmpty})
    private String naem;
    private Integer age;
    private Long id;
//    @JSONField(serialzeFeatures= {SerializerFeature.UseISO8601DateFormat})
    private Date birthDay;

    public User() {}

    public User(String naem, Integer age) {
        this.naem = naem;
        this.age = age;
    }

//    private static String a = geta();
//
//    public static String geta() {
//        System.out.println("#####user");
//        return "##########user";
//    }
}
